package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:char(11);not null;unique;comment:手机号"`
	Password string `gorm:"type:varchar(32);not null;comment:密码"`
	Name     string `gorm:"type:varchar(20);not null;comment:姓名"`
	Image    string `gorm:"type:varchar(300);not null;comment:图片"`
	Sex      string `gorm:"type:varchar(10);not null;comment:性别"`
	Info     string `gorm:"type:varchar(300);not null;comment:简介"`
	Address  string `gorm:"type:varchar(30);not null;comment:地址"`
}
